/*
 * @Author: 张小平
 * @Date:   2025-05-01 
 * @Email:  qqshuqian@163.com 
 * @Copyright © 2024 aseyun. All rights reserved.
 */
export const tableOption = {
  index: true,
  border: true,
  indexLabel: "#",
  stripe: true,
  menuAlign: "center",
  align: 'center',
  // menuWidth: 260,
  // menuType:'menu',
  // menuBtnTitle:'基本操作',
  // copyBtn:true,
  searchEnter:true,
  searchMenuSpan: 8,
  searchSpan:8,
  searchSize: 'mini',
  filterBtn: true,
  tip: false,
  column: [{
      type: 'input',
      label: '父标识',
      // labelPosition: 'top',
      prop: 'code',
      search: true,
      editDisabled: true,
      rules: [{
        required: true,
        message: '请输入字典项父标识',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '父名称',
      search: true,
      prop: 'name',
      rules: [{
        required: true,
        message: '请输入字典项父名称',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '排序',
      prop: 'sort',
      sort: true,
      value:'0',
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '备注信息',
      prop: 'comments',
      span: 12
    },
    // {
    //   width: 150,
    //   type: 'datetime',
    //   label: '创建时间',
    //   prop: 'createTime',
    //   display: false,
    //   format: 'yyyy-MM-dd HH:mm',
    //   valueFormat: 'yyyy-MM-dd HH:mm:ss',
    //   span: 12
    // }
  ]
}

export const tableItemOption = {
  border: true,
  index: true,
  indexLabel: '#',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchMenuSpan: 8,
  searchSpan:8,
  searchSize: 'mini',
  column: [
    {
      type: 'input',
      label: '子标识',
      prop: 'code',
      search: true,
      editDisabled: true,
      rules: [{
        required: true,
        message: '请输入字典项子标识',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '子名称',
      search: true,
      prop: 'name',
      rules: [{
        required: true,
        message: '请输入字典项子名称',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '排序',
      prop: 'sort',
      value:'0',
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '备注信息',
      prop: 'comments',
      span: 12
    },
    // {
    //   width: 150,
    //   type: 'datetime',
    //   label: '创建时间',
    //   prop: 'createTime',
    //   display: false,
    //   format: 'yyyy-MM-dd HH:mm',
    //   valueFormat: 'yyyy-MM-dd HH:mm:ss',
    //   span: 12
    // }

    ]
}
